package com.gxa.hystrix.controller;

import com.gxa.hystrix.service.GuaHaoService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author thinknovo
 * @version 1.0
 * @description guahaocontroller.java
 * @date 2021/3/25 15:36
 */
@RestController
@RequestMapping(value = "guaHaoJiLu", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class GuaHaoController {
    @Resource
    private GuaHaoService guahaoservice;

    @GetMapping("chaXunJinRi")
    public Map chaXunChuFangMoBan(String jiuZhenShiJian) {
        return guahaoservice.chaXunChuFangMoBan(jiuZhenShiJian);
    }

    @GetMapping("chaXunQuanBu")
    public Map chaXunQuanBu(String jiuZhenShiJianQiShi,
                            String jiuZhenShiJianJieShu,
                            String jiuZhenJiLuZhuangTai,
                            String guaDanDanHao,
                            String xingMing) {
        return guahaoservice.chaXunQuanBu(jiuZhenShiJianQiShi,jiuZhenShiJianJieShu,jiuZhenJiLuZhuangTai,guaDanDanHao,xingMing);
    }

    @GetMapping("chaXunHuanZe")
    public Map chaXunHuanZe(String guaHaoDanHao) {
        return guahaoservice.chaXunHuanZe(guaHaoDanHao);
    }
}